#include <57header.h>

int main(int argc,char*argv[])
{
    int pipe_fd = open("1.pipe", O_WRONLY);

    int file_name_len = 8;
    write(pipe_fd,&file_name_len, sizeof(int));
    write(pipe_fd, "test.txt", 8);

    int size = 5;
    write(pipe_fd, &size, sizeof(int));
    

    char *str = "hello";
    int str_len = strlen(str);
    write(pipe_fd, &str_len, sizeof(int));
    write(pipe_fd, str, str_len);

    close(pipe_fd);
    return 0;
}

